]> dgit.raspbian.org Git - gnome-shell.git/commit
remoteSearch: Load remote search providers synchronously
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 26 Jul 2013 22:36:31 +0000 (18:36 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 26 Jul 2013 23:14:40 +0000 (19:14 -0400)
commitbe961cd60eaa5304c7a7a2fa3db3ff5638115056
tree7411645d8d748c9f93acf94496a8dc6fc1622d06
parent4efd363134e591e1e298c33c64509c627234a1c2
remoteSearch: Load remote search providers synchronously

As we only reload search providers on startup or when the sort order changes,
and given the small number of search providers we'll actually load, I doubt
we'll see any speed decrease.

The simplicity of synchronous code is also much clearer, and fully avoids
all the possible bugs about in-flight requests or similar.

This also prevents issues with multiple search providers showing up at once,
which happen when multiple requests to reload search providers get called
immediately, with the existing in-flight async requests never cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=700283
js/ui/remoteSearch.js